<?php
/**
 * XGPHP 轻量级PHP框架
 * @link http://xgphp.xg3.cn
 * @version 2.0.0
 * @license http://www.apache.org/licenses/LICENSE-2.0
 * @author 讯高科技 <xungaokeji@qq.com>
*/
namespace xg\facade;
class Db 
{
	protected static function createFacade()
	{
		$conf = \xg\facade\Config::load('database');
		return new \xg\Database($conf);
	}
	
	public static function __callStatic($method, $params)
	{
		return call_user_func_array([static::createFacade(), $method], $params);
	}
}
?>